package com.jing.service;
import com.jing.model.Book;
import com.jing.repository.IBookRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.logging.Logger;
@Service
public class BookService {
    @Autowired
    private IBookRepository iBookRepository;
    public void onSale(Book book) {
        iBookRepository.addBook(book);
    }
}
